package com.fiidee.blog.mapper;

import com.fiidee.blog.dto.UserDTO;
import com.fiidee.blog.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectByDTO(@Param("dto") UserDTO dto);

    int deleteInIds(@Param("ids") String ids);


    List<Map<String,Object>> selectByMutiMethods(@Param("loginCode") String loginCode);

    List<User> findUser(@Param("name") String name);

    List<Map<String,Object>> selectRecommendUser();

    Map<String,Object> getUserInfo(@Param("id")Integer userid);
}
